package cn.hinglo.permission.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @author HingLo
 * @createTime: 2018-11-21 14:52:48
 * @description: BaseUser 模型
 */
@Entity
@Table(name = "user")
public abstract class BaseUser<M extends BaseUser<M>> extends Model<M> implements IBean {

    @Column(name = "id")
    public java.lang.Integer getId() {
        return getInt("id");
    }

    public M setId(java.lang.Integer id) {
        set("id", id);
        return (M) this;
    }

    @Column(name = "username")
    public java.lang.String getUsername() {
        return getStr("username");
    }

    public M setUsername(java.lang.String username) {
        set("username", username);
        return (M) this;
    }

    @Column(name = "password")
    public java.lang.String getPassword() {
        return getStr("password");
    }

    public M setPassword(java.lang.String password) {
        set("password", password);
        return (M) this;
    }

    @Column(name = "date")
    public java.util.Date getDate() {
        return get("date");
    }

    public M setDate(java.util.Date date) {
        set("date", date);
        return (M) this;
    }

}
